﻿namespace fleetIt
{
    using System.Windows;
    public partial class App : Application
    {
        private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            MessageBox.Show(string.Format("An unhandler exception occured.\n\nException Details\nMessage :{0}\nSource :{1}", e.Exception.Message, e.Exception.Source), "fleetIt", MessageBoxButton.OK, MessageBoxImage.Error);
            e.Handled = false;
            Application.Current.Shutdown(2);
        }
    }
}
